package inheritance;

public class ArabGreek {

	public static void main(String s[])  
    {  
        Greek ga=new Arab();  
//        Arab arab = (Arab) ga;
        System.out.println(ga.i+" "+ga.getI());
//        System.out.println(arab.i);
    }
	
    public static class Greek   
    {  
        int i=99;  
        public int getI()  
        {  
            System.out.println("Super");  
            return i;  
        }  
    }  
    
    public static class Arab extends Greek  
    {  
        int i=22;  
        public int getI()  
        {  
            System.out.print("Sub ");  
            return i;  
        }  
    }  
	
}
